//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * menuinfoModel
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
package com.gamutsoft.amb.menuinfo.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "MENUINFO")
public class Menuinfo implements java.io.Serializable {

	/**
	 * 
	 */
	private Long id ;
	/**
	 * 
	 */
	private String code ;
	/**
	 * 
	 */
	private String name ;
	/**
	 * 
	 */
	private String parentcode ;
	/**
	 * 
	 */
	private String url ;
	/**
	 * 
	 */
	private String jumpType ;
	/**
	 * 
	 */
	private String status ;
	/**
	 * 
	 */
	private String createTime ;
	/**
	 * 
	 */
	private String createUser ;
	
	private String imgUrl;
	
	private String orderNum;

/** default constructor */
	public Menuinfo() {
	}

	/** minimal constructor */
   public Menuinfo(Long id) {
             this.id = id;
                                                      	
 } 
	

    /**
	 * 获取
	 * @return
	 */
    @Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, scale = 0)
	public Long getId() {
		return this.id;
	}
	
	/**
	 * 设置
	 * @param id
	 */	
	public void setId(Long id) {
		this.id = id;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "code", length = 32)
	public String getCode() {
		return code;
	}
	
	/**
	 * 设置
	 * @param code
	 */	
	public void setCode(String code) {
		this.code = code;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "name", length = 100)
	public String getName() {
		return name;
	}
	
	/**
	 * 设置
	 * @param name
	 */	
	public void setName(String name) {
		this.name = name;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "parentCode", length = 32)
	public String getParentcode() {
		return parentcode;
	}
	
	/**
	 * 设置
	 * @param parentcode
	 */	
	public void setParentcode(String parentcode) {
		this.parentcode = parentcode;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "url", length = 200)
	public String getUrl() {
		return url;
	}
	
	/**
	 * 设置
	 * @param url
	 */	
	public void setUrl(String url) {
		this.url = url;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "jump_type", length =3 )
	public String getJumpType() {
		return jumpType;
	}
	
	/**
	 * 设置
	 * @param jumpType
	 */	
	public void setJumpType(String jumpType) {
		this.jumpType = jumpType;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "status", length =3 )
	public String getStatus() {
		return status;
	}
	
	/**
	 * 设置
	 * @param status
	 */	
	public void setStatus(String status) {
		this.status = status;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "create_time", length = 19)
	public String getCreateTime() {
		return createTime;
	}
	
	/**
	 * 设置
	 * @param createTime
	 */	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "create_user", length = 32)
	public String getCreateUser() {
		return createUser;
	}
	
	/**
	 * 设置
	 * @param createUser
	 */	
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	/**
	 * 获取
	 * @return
	 */
	@Column(name = "img_url", length = 100)
	public String getImgUrl() {
		return imgUrl;
	}
	
	/**
	 * 设置
	 * @param createUser
	 */	
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	/**
	 * 获取
	 * @return
	 */
	@Column(name = "order_num", length = 10)
	public String getOrderNum() {
		return orderNum;
	}
	
	/**
	 * 设置
	 * @param createUser
	 */	
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
}